Skip to content

fix: refuse writing client configs from a disk image and show missing agent programs - #22

Merged
nodemode-ai merged 3 commits into
mainfrom
fix/owner-decisions-2026-11-29
Nov 30, 2026
Merged

nodemode-ai merged 3 commits into
mainfrom
fix/owner-decisions-2026-11-29

Conversation

@gbarnai

@gbarnai gbarnai commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Agent entries whose recorded formMCP program no longer exists now show a not-found state with the path (missing in agents status, with the path in a new program field); Connect repairs them.
  • On macOS, formMCP checks the volume it runs from with statfs and refuses to write agent configs from a mounted disk image, asking to install the app first; external drives are accepted.
  • Adds libc 0.2 (macOS only, MIT OR Apache-2.0, already in Cargo.lock) with a NOTICE row.
  • host_files tests use a stand-in program inside the scratch home instead of a path that does not exist, plus new tests for the missing state and the volume rule.

Tests

  • Each change has tests that fail on the code before it.
  • The repo's CI commands were run locally on macOS; every local failure also fails on main in the same environment. Please rely on this PR's CI for Linux and Windows.

How to ship

  • Follows the earlier hardening PR, already merged. Independent of other repos. No version bump.

…om a disk image

An agent entry that names a formMCP program which is no longer on disk
now reads as missing instead of connected: the card says Not found with
the path, agents status reports missing with the path in program, and
Connect writes the running copy in its place.

On macOS, a program under /Volumes is checked with statfs (libc, macOS
only). A quarantined volume, or a read-only one with a Mac file system,
is treated as a disk image and connecting an agent is refused with a
note to install the app first; an external drive is accepted.

The host_files tests now write a stand-in program inside each scratch
home instead of a path that does not exist.
The disk image refusal applies to connecting only. The window's
Disconnect and agents remove now ask for the launcher with on false,
because taking an entry out writes no program path.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 21:21
…the not-found note when it goes

The stand-in reported /x/formmcp, which the new missing-program check rightly reads as gone. It now reports a file inside the test's own folder, is connected with no note, and after that file is removed shows missing with a note naming it.
@nodemode-ai
nodemode-ai merged commit 9d7652b into main Nov 30, 2026
4 checks passed
@nodemode-ai
nodemode-ai deleted the fix/owner-decisions-2026-11-29 branch November 30, 2026 18:24
nodemode-ai added a commit that referenced this pull request Nov 30, 2026
main gained pull request #22 after this branch was cut (a gone agent
program reads as not found, no agent is connected from a disk image), and
three files conflicted. In each, both sides had added lines at the same
place. Both additions are kept, and nothing else differs from what git
merged by itself.

- core/src/lib.rs: both module lines, `pub mod mounts;` then
  `pub mod notices;`, in the file's alphabetical order.
- core/HASHOUT_LOG.md, frontend/HASHOUT_LOG.md: both Unreleased sections,
  this branch's notices section first, then main's.

main also made libc a direct dependency of formmcp-core on macOS. libc was
already reachable from the app in Cargo.lock, so THIRD-PARTY-NOTICES.txt
needs no new section and is unchanged.

Run on the merged tree, on Linux: python3 -I setup/notices.py --check
(covers everything that ships); cargo check and cargo test --locked -p
formmcp-core -p formmcp-cli (75 passed, 0 failed); cargo check --locked -p
formmcp; the scripts job's shell syntax, Python compile, family check and
em dash and emoji scan; in frontend npm ci, npm audit, typecheck and build.
Not run: any macOS or Windows build, and the app's window.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants